import React,{Component} from "react";//这个官方已经启用,页面报错export default class RefsString extends Component {    render() {        return(            <div>                <input ref='input1' type="text" placeholder='点击按钮提示数据'/>&nbsp;                <button onClick={this.showData}>点我提示左侧信息</button>&nbsp;                <input onBlur={this.showData2} ref='input2' type="text" placeholder='失去焦点提示信息'/>            </div>        )    }    showData = () =>{        // console.log(this);        // console.log(this.refs.input1);        const {input1} = this.refs       alert(input1.value)    };    showData2 = ()=>{        const {input2} = this.refs        alert(input2.value)    }}